/**
 * Created by Administrator on 2019/3/1 0001.
 */
// let user = require("./user")
// console.log(`userName:${user.userName}`)

let http = require("http")

http.createServer((req,res)=>{
	res.statusCode = 200
	res.setHeader("Content-Tyep","text/html; charset=utf-8")
	res.end("Hello,Node.js")
}).listen(3000,"127.0.0.1",()=>{
	console.log("服务已经启动")
})